package com.cssy.xxkj.logic.dao;

import com.cssy.xxkj.logic.entity.LogicProductionReturnItemDO;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2014-10-09
 */
public interface LogicProductionReturnItemDAO extends LogicBizDAO<LogicProductionReturnItemDO>{

    /**
     * 插入数据
     * @param logicProductionReturnItemDO
     * @return 插入数据的主键
     */
    public String insertLogicProductionReturnItemDO(LogicProductionReturnItemDO logicProductionReturnItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicProductionReturnItemDO
     * @return 查出的记录数
     */
    public Integer countLogicProductionReturnItemDOByExample(LogicProductionReturnItemDO logicProductionReturnItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicProductionReturnItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicProductionReturnItemDO(LogicProductionReturnItemDO logicProductionReturnItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicProductionReturnItemDO
     * @return 对象列表
     */
    public List<LogicProductionReturnItemDO> findListByExample(LogicProductionReturnItemDO logicProductionReturnItemDO) throws DataAccessException;

    /**
     * 根据主键获取logicProductionReturnItemDO
     * @param id
     * @return logicProductionReturnItemDO
     */
    public LogicProductionReturnItemDO findLogicProductionReturnItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicProductionReturnItemDOByPrimaryKey(String id) throws DataAccessException;
    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteProById(String id) throws DataAccessException;

}